#include "stdio.h"

main()
{
	int n,a,b;
	int i;
	while (scanf("%d",&n)!=EOF)
	{
		scanf("%d",&a);
		for (i=2;i<=n;i++) 
		{
			scanf("%d",&b);
			a=a^b;
		}
		if (a) printf("Yes\n");
		else printf("No\n");
	}
	return 0;
}